package com.example.springbootlearn.aware;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author caiji Mr. Li
 * @date 2019/11/7 22:23
 */
@ComponentScan(value="com.example.springbootlearn.aware")
public class Main
{
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =new AnnotationConfigApplicationContext(Main.class);
       Test test =(Test) context.getBean("test");
       test.testAware();
    }
}
